package org.cli.admin.cli.printer.ui;

import java.util.ArrayList;
import java.util.List;


public class SelectItems<T> {
	private String questionText;
	
	private final List<SelectItem<T>> items;
	
	private SelectItem<T> selectedItem;
	
	public SelectItems(){
		items = new ArrayList<SelectItem<T>>();
	}
	
	public SelectItems(String questionText) {
		this();
		this.questionText = questionText;
	}
	
	public String getQuestionText() {
		return questionText;
	}
	
	public void setQuestionText(String questionText) {
		this.questionText = questionText;
	}

	public List<SelectItem<T>> getItems() {
		return items;
	}

	public SelectItem<T> getSelectedItem() {
		return selectedItem;
	}

	public void setSelectedItem(SelectItem<T> selectedItem) {
		this.selectedItem = selectedItem;
	}

	public void addSelectItem(SelectItem<T> selectItem) {
		this.items.add(selectItem);
	}
	
}
